<script lang="ts">
  import { Tag } from "carbon-components-svelte";
  import Add from "carbon-icons-svelte/lib/Add.svelte";
</script>

<Tag class="my-class" style="margin: 1rem;">IBM Cloud</Tag>

<Tag type="red">red</Tag>

<Tag type="magenta">magenta</Tag>

<Tag type="purple">purple</Tag>

<Tag type="blue">blue</Tag>

<Tag type="cyan">cyan</Tag>

<Tag type="teal">teal</Tag>

<Tag type="green">green</Tag>

<Tag type="gray">gray</Tag>

<Tag type="cool-gray">cool-gray</Tag>

<Tag type="warm-gray">warm-gray</Tag>

<Tag type="high-contrast">high-contrast</Tag>

<Tag type="outline">outline</Tag>

<Tag
  filter
  on:click={() => {
    console.log("click");
  }}
  on:close={() => {
    console.log("close");
  }}>Filterable</Tag
>

<Tag icon={Add}>Custom icon</Tag>

<Tag
  interactive
  on:click={() => {
    console.log("click");
  }}>Text</Tag
>

<Tag skeleton />

<Tag size="sm">Small tag</Tag>

<Tag filter disabled title="Custom title">Disabled filterable</Tag>

<Tag interactive disabled>Disabled interactive</Tag>

<Tag id="custom-tag-id">Custom ID tag</Tag>

<Tag
  on:mouseover={() => {
    console.log("mouseover");
  }}
  on:mouseenter={() => {
    console.log("mouseenter");
  }}
  on:mouseleave={() => {
    console.log("mouseleave");
  }}>Mouse events</Tag
>

<Tag interactive>
  <Add slot="icon" />
  Icon slot
</Tag>
